@import "../../../src/assets/styles/theme.module.scss";

.dashboard_index_box {
  display: flex;
  height: 100vh;
  padding: 3rem;
  flex-direction: column;
  position: relative;
  .dashboard_svg_box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    .svg_font {
      font-size: 2rem;
    }
    .svg_item {
      cursor: pointer;
    }
  }
  .dashboard_sidebar {
    &.active {
      display: flex;
      width: 100vw;
      min-height: 100vh;
      position: fixed;
      top: 0;
      left: 0;
      justify-content: space-between;
      .dashboard_nav {
        padding: 14.1875rem 0;
        margin-right: 4rem;
        background-color: #2e0b58;
        .dashboard_item {
          margin-left: 2rem;
          padding: 0.5rem 2rem;
          border-bottom-left-radius: 10rem;
          border-top-left-radius: 10rem;
          &.active {
            color: $active_color;
            background-color: #820b8f;
          }
        }
      }
      .dashboard_output {
        background-color: transparent;
        width: 85%;
        padding: 3rem;
      }
    }
    .dashboard_nav {
      position: fixed;
      height: 100%;
      width: max-content;
      background-color: #2e0b58;
      top: 0;
      left: -100%;
      box-shadow: rgba($color: #000000, $alpha: 0.25) 0 4px 8px 0;
      letter-spacing: -0.5px;
      padding: 14.1875rem 0;
      transition: 0.3s;
      z-index: 999;
      margin-right: 4rem;
      &.is_show {
        left: 0;
      }
      &.clear_z_index {
        z-index: 0;
      }
      .dashboard_list {
        .dashboard_item {
          margin-left: 2rem;
          padding: 0.5rem 5rem 0.5rem 2rem;
          border-bottom-left-radius: 10rem;
          border-top-left-radius: 10rem;
          &.active {
            color: rgb(250, 171, 41);
            background-color: #820b8f;
          }
        }
      }
    }
    .dashboard_output {
      background-color: transparent;
      height: 100vh;
      position: fixed;
      right: 0;
      top: 0;
    }
  }

  .dashboard_title {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: baseline;
    color: white;
    font-family: $main_font;
    font-size: 2rem;
    margin-bottom: 2rem;
    h3 {
      font-weight: 400;
      font-size: 3rem;
    }
    .day_main {
      font-size: 2.5rem;
    }
  }
  .dashboard_info {
    display: flex;
    justify-content: space-between;
    font-family: $main_font;
    margin-bottom: 1rem;
    .dashboard_info_list {
      padding: 5rem;
      width: 18%;
      position: relative;
      .dashboard_info_item_title {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        font-size: 2rem;
      }
      .dashboard_info_child {
        position: absolute;
        bottom: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        color: $active_color;
        .dashboard_info_unit {
          font-size: 1rem;
          color: white;
        }
      }
    }
  }
  .dashboard_table_info {
    flex: 1;
    display: flex;
    font-family: $main_font;
    justify-content: space-between;
    // 左侧表格
    .dashboard_left_table {
      padding: 1rem 0.5rem;
      width: 30%;
      .dashboard_table_title_box {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1rem;
        .dashboard_left_border {
          border-radius: 0.5rem;
          height: 2.3rem;
          width: 0.5rem;
          background-color: $main_light;
        }
        .dashboard_table_title {
          padding-left: 1rem;
          border-radius: 1px;
          font-size: 2rem;
        }
      }
    }
    // 中间部分
    .dashboard_middle_table {
      width: 35%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      // 中间顶部
      .dashboard_middle_top {
        padding: 0 1.5rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 95%;
        align-items: center;
        .middle_top_item {
          width: 45%;
          position: relative;
          padding: 1rem;
          .dashboard_info_item_title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
          }
          .dashboard_info_child {
            margin-left: 6rem;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            span {
              color: $active_color;
              font-size: 2rem;
            }
            .dashboard_info_unit {
              color: white;
              font-size: $font_small;
            }
          }
        }
      }
      // 中部
      .dashboard_middle_middle {
        display: flex;
        justify-content: space-between;
        .dashboard_middle_middle_box {
          margin-top: 1.5rem;
          padding: 0 2rem;
          .title {
            font-size: 1.8rem;
            color: white;
            span {
              font-size: 4.5rem;
              color: rgba($color: white, $alpha: 0.25);
            }
          }
          .dashboard_sum {
            color: $active_color;
            font-size: 2.5rem;
            margin-left: 8rem;
            span {
              font-size: $font_small;
              color: white;
              margin-left: 3rem;
            }
          }
        }
      }
      // 底部
      .dashboard_middle_bottom {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        .dashboard_border {
          display: flex;
          align-items: flex-start;
          .dashboard_border_right {
            height: 2.3rem;
            width: 0.5rem;
            background-color: $main_light;
            border-radius: 0.5rem;
            margin-right: 1rem;
          }
          p {
            font-size: 2rem;
          }
        }
      }
    }
    // 右侧表格
    .dashboard_right_table {
      width: 30%;
    }
  }
}
